package cn.edu.wynu;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("lenovo")
public class Computer {

    @Value("1TB")
    String disk;

    @Value("108键")
    String keybord;

    @Override
    public String toString() {
        return "Computer{" +
                "disk='" + disk + '\'' +
                ", keybord='" + keybord + '\'' +
                '}';
    }
}
